Help > Reference > Macros > Runtime object > Filename property

Filename property

This property returns the filename of the macro currently executing.

Member of

Runtime

Type

Read-Only String property

Example

MsgBox "Executing Macro " & Name & " in file " & Filename

See Also

Macro Object Model

Runtime